package com.uroad.jilinpda.modle;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * @创建者 wlw
 * @创建时间 2019/6/16 17:24
 * @描述 OBU系统信息
 */
public class OBUSystemInfoMDL implements Serializable {
    private String OBUID;
    private String OBUNo;
    private String OBUDefinition;
    private String Type;
    private String startDate;
    private String endDate;
    private String operator;
    private String status;

    public String getOBUID() {
        return OBUID == null ? "" : OBUID;
    }

    public void setOBUID(String OBUID) {
        this.OBUID = OBUID;
    }

    public String getOBUNo() {
        return OBUNo == null ? "" : OBUNo;
    }

    public void setOBUNo(String OBUNo) {
        this.OBUNo = OBUNo;
    }

    public String getOBUDefinition() {
        return OBUDefinition == null ? "" : OBUDefinition;
    }

    public void setOBUDefinition(String OBUDefinition) {
        this.OBUDefinition = OBUDefinition;
    }

    public String getType() {
        return Type == null ? "" : Type;
    }

    public void setType(String type) {
        Type = type;
    }

    public String getStartDate() {
        return startDate == null ? "" : startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate == null ? "" : endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getOperator() {
        if (TextUtils.isEmpty(operator)) {
            return "";
        }else{
            switch (operator) {
                case "2101":
                    return "辽宁";
                case "2201":
                    return "吉林";
                default:
                    return operator;
            }
        }
        //        return operator == null ? "" : operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getStatus() {
        if (TextUtils.isEmpty(status)) {
            return "";
        }
        switch (status) {
            case "00":
                return "已拆卸";
            case "01":
                return "已激活";
            case "02":
                return "预激活";
            default:
                return status;
        }
//        return status == null ? "" : status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
